/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: scale(1.04);
}

.btn-primary {
    background-color: #786CFF;
    color: white;
}

.btn-primary:hover {
    background-color: #6B5FE6;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1C1B1F;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #E5E5E5;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 16px 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.nav-link {
    font-size: 16px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #786CFF;
}

/* Hero Section */
#hero {
    background-color: #FAF8F4;
    min-height: calc(100vh - 80px);
    padding: 80px 0 40px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 20px;
    color: #666;
    margin-bottom: 32px;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* Features Section */
#features {
    padding: 120px 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    background: white;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.feature-card p {
    color: #666;
    font-size: 16px;
}

.features-cta {
    text-align: center;
    margin-top: 3rem;
}

.features-cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.features-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* How It Works Section */
#how-it-works {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #faf8f4 100%);
    position: relative;
    overflow: hidden;
}

#how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23786CFF" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.how-it-works-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.how-it-works-header p {
    font-size: 20px;
    color: #666;
    line-height: 1.6;
}

.workflow-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.workflow-step {
    flex: 1;
    max-width: 240px;
    text-align: center;
    position: relative;
    /* Remove animation initially to debug */
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #786CFF, #9B8CFF);
    color: white;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(120, 108, 255, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    background: white;
    border-radius: 20px;
    padding: 40px 24px 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    margin-top: -30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.workflow-step:hover .step-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.step-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.step-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.step-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.workflow-arrow {
    flex-shrink: 0;
    margin: 60px -10px 0;
    opacity: 1;
    align-self: flex-start;
}

.workflow-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(120, 108, 255, 0.2));
}

/* Add animation back after debugging */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation with JavaScript trigger */
.workflow-step.animate {
    animation: fadeInUp 0.8s ease forwards;
}

.workflow-step.animate:nth-child(1) { animation-delay: 0.2s; }
.workflow-step.animate:nth-child(3) { animation-delay: 0.4s; }
.workflow-step.animate:nth-child(5) { animation-delay: 0.6s; }
.workflow-step.animate:nth-child(7) { animation-delay: 0.8s; }

.workflow-arrow.animate {
    animation: fadeIn 0.8s ease forwards;
}

.workflow-arrow.animate:nth-child(2) { animation-delay: 0.3s; }
.workflow-arrow.animate:nth-child(4) { animation-delay: 0.5s; }
.workflow-arrow.animate:nth-child(6) { animation-delay: 0.7s; }

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design for How It Works */
@media (max-width: 1024px) {
    .workflow-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .workflow-step {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    #how-it-works {
        padding: 80px 0;
    }
    
    .how-it-works-header h2 {
        font-size: 36px;
    }
    
    .how-it-works-header p {
        font-size: 18px;
    }
    
    .how-it-works-header {
        margin-bottom: 60px;
    }
    
    .workflow-container {
        gap: 30px;
    }
    
    .workflow-step {
        max-width: 300px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .step-content {
        padding: 30px 20px 25px;
        margin-top: -25px;
        min-height: 180px;
    }
    
    .step-content h3 {
        font-size: 16px;
    }
    
    .step-content p {
        font-size: 13px;
    }
    
    .workflow-arrow {
        display: none;
    }
}

/* Daily Poster Section */
#daily-poster {
    background-color: #1C1B1F;
    padding: 120px 0;
    position: relative;
}

#daily-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #FAF8F4 50%, #1C1B1F 50%);
}

.poster-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.poster-text h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.poster-text p {
    color: #B8B5C3;
    margin-bottom: 32px;
    font-size: 20px;
}

.poster-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
}

/* Social Proof Section */
#social-proof {
    background-color: #FFF7F4;
    padding: 120px 0;
}

.testimonials {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    height: 260px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0 20px;
}

.testimonial.active {
    opacity: 1;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 40px 32px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(120, 108, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.testimonial.active .testimonial-content {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(120, 108, 255, 0.15);
}

.testimonial p {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    color: #333;
    margin-bottom: 24px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.testimonial cite {
    color: #666;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

/* Language switching for testimonials */

/* Waitlist Section */
#waitlist {
    padding: 120px 0;
    background-color: white;
}

.waitlist-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-card h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.waitlist-card p {
    color: #666;
    margin-bottom: 40px;
    font-size: 18px;
}

.waitlist-form {
    display: flex;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.waitlist-form input:focus {
    border-color: #786CFF;
}

/* Footer */
footer {
    background-color: #FAF8F4;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left span {
    color: #666;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #666;
    font-size: 20px;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #786CFF;
}

/* Specific styling for WeChat icon */
.social-link .fa-weixin:hover {
    color: #07C160;
}

/* Specific styling for Twitter icon */
.social-link .fa-twitter:hover {
    color: #000000;
}

/* Modal Gallery */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal-content-gallery {
    position: relative;
    margin: 40px auto;
    padding: 40px;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.gallery-header p {
    font-size: 18px;
    color: #666;
}

.poster-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.poster-item {
    background: #FAF8F4;
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.poster-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(120, 108, 255, 0.15);
}

.poster-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.poster-caption h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.poster-caption p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.close:hover {
    color: #333;
    background: white;
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .poster-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .poster-image img {
        max-width: 280px;
    }
    
    .poster-text h2 {
        font-size: 32px;
    }
    
    .modal-content-gallery {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .gallery-header h3 {
        font-size: 28px;
    }
    
    .poster-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .poster-item img {
        height: 180px;
    }
    
    .waitlist-form {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-container {
        flex-wrap: wrap;
        gap: 16px;
        padding: 12px 20px;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .nav-left {
        gap: 20px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    #features, #daily-poster, #social-proof, #waitlist {
        padding: 80px 0;
    }
    
    .testimonials {
        height: 300px;
    }
    
    .testimonial {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        opacity: 0;
        transition: opacity 0.5s ease;
        padding: 0 10px;
    }
    
    .testimonial.active {
        opacity: 1;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .testimonial p {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .testimonial cite {
        font-size: 14px;
    }
} 